Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: hidden app roots (v2) #107

Merged
merged 59 commits into from
Mar 26, 2019
Merged

BUG: hidden app roots (v2) #107

merged 59 commits into from
Mar 26, 2019

Conversation

ryan-roemer
Copy link
Member

@ryan-roemer ryan-roemer commented Mar 20, 2019

Version 2. Supersedes #104

When an application root has no actual node_modules in it, the versions action inference fails to find the app root package.json file and misses traversing the versions dependencies. This has the buggy effects of:

  • Missing information in versions action for CLI
  • Missing information in DuplicatesPlugin.

Work

@ryan-roemer ryan-roemer mentioned this pull request Mar 20, 2019
3 tasks
@ryan-roemer ryan-roemer marked this pull request as ready for review March 20, 2019 22:08
@ryan-roemer ryan-roemer reopened this Mar 20, 2019
@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #107 into master will increase coverage by 0.18%.
The diff coverage is 96.03%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   90.77%   90.95%   +0.18%     
==========================================
  Files          14       15       +1     
  Lines         694      730      +36     
  Branches      111      116       +5     
==========================================
+ Hits          630      664      +34     
- Misses         38       39       +1     
- Partials       26       27       +1
Impacted Files Coverage Δ
src/lib/util/promise.ts 100% <100%> (ø)
src/lib/actions/base.ts 93.2% <100%> (+0.06%) ⬆️
src/lib/util/dependencies.ts 95.13% <92%> (+0.21%) ⬆️
src/lib/actions/versions.ts 94.76% <97.22%> (-0.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe5e41f...54c49a5. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #107 into master will decrease coverage by 0.21%.
The diff coverage is 92.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
- Coverage   90.77%   90.56%   -0.22%     
==========================================
  Files          14       15       +1     
  Lines         694      763      +69     
  Branches      111      122      +11     
==========================================
+ Hits          630      691      +61     
- Misses         38       41       +3     
- Partials       26       31       +5
Impacted Files Coverage Δ
src/lib/util/promise.ts 100% <100%> (ø)
src/lib/actions/base.ts 93.2% <100%> (+0.06%) ⬆️
src/plugin/duplicates.ts 86.3% <80%> (-1.11%) ⬇️
src/lib/util/dependencies.ts 95.1% <91.66%> (+0.17%) ⬆️
src/lib/actions/versions.ts 94.11% <95.5%> (-1.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe5e41f...18bd729. Read the comment docs.

@ryan-roemer ryan-roemer changed the title [WIP] BUG: hidden app roots (v2) BUG: hidden app roots (v2) Mar 25, 2019
num: 0,
},
files: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixture has been wrong for a long time...

@ryan-roemer ryan-roemer merged commit 0c2e588 into master Mar 26, 2019
@ryan-roemer ryan-roemer deleted the bug/hidden-app-roots-v2 branch March 26, 2019 16:02
@ryan-roemer
Copy link
Member Author

Released in inspectpack@4.2.0

@parkerziegler
Copy link

@ryan-roemer I'm going to upgrade webpack-dashboard to use inspectpack@4.2.0 to pick up this change in 3.0.1. Do you think this fixes https://github.com/FormidableLabs/webpack-dashboard/issues/276?

@ryan-roemer
Copy link
Member Author

@parkerziegler -- Upgrade sounds great! Unfortunately, it won't fix https://github.com/FormidableLabs/webpack-dashboard/issues/276 which I'm likely going to migrate over to inspectpack as an issue there....

@parkerziegler
Copy link

Cool, no worries. Thanks a lot for taking that one on, and for this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Application roots without node_modules on disk are missed for versions inference.
2 participants